$def with (md5, path, recurso)
$var title: Viewer ($md5)
$var search_form: True
$var common_jquery:
	var check_class = new only_one_send();
	
	var clases = new all_classes(function(){
		$$.each(clases.toArray(), function(key, value) {
			check_class.setValue(value, value);
		});
	});
	
	check_class.doNotFound = function(elem, clave){
		if(clases._classes != null && clases.hasClase(clave))
			this.setValue(clave, clave);
	};
	check_class.printValue = function(elem, value){
		var key = value.replace(new RegExp('\\.', "g"),"/");
		if(path != key)//No se muestra un enlace si es la misma clase
			elem.innerHTML = '<a href="./'+value+'">L'+key+';</a>';
	};
	check_class.getKeyByElem = function(elem){
		var ret = elem.textContent.replace(new RegExp('^L|;$$', "g"),"");
		return ret.replace(new RegExp('/', "g"),".");
	};
	
	clases.load();
	</script>
	<script language='javascript' src='/static/SyntaxHighlighter/shCore.js'></script>
	<script language='javascript' src='/static/SyntaxHighlighter/shBrushXml.js'></script>
	<script language='javascript' src='/static/SyntaxHighlighter/shBrushDdx.js'></script>
	<script language='javascript' src='/static/SyntaxHighlighter/shBrushSmali.js'></script>
	<script language='javascript'>
	var reintento_link = null;
	function colorea(){
		dp.SyntaxHighlighter.ClipboardSwf = '/static/SyntaxHighlighter/clipboard.swf';
		dp.SyntaxHighlighter.HighlightAll('code');
		$$("h2.cargando").remove();
	}
	$$(document).ready( function() {
		$$('#busca_ya').click(function(){
			new VentanaBusquedaAJAX("/static/reports/$md5/", clases, $$('#busca_text').attr("value"));
		});
$if recurso:
	$var jquery:
		$:self.common_jquery
		var stack_arroba_num = createStackArrobaNum("../../");
		$$.ajax({
			url: "$path",
			dataType: "html",
			success: function(data) {
			    $$('#contenido').html(data);
			    $$('#contenido').addClass("xml:nocontrols");
			    colorea();
			    procesar_xml(false, clases, stack_arroba_num);
			},
			error: function() {
				alert("No existe el objeto");
				history.back();
			}
		});
		});
$else:
	$var jquery:
		var stack_arroba_num = createStackArrobaNum();
		var files = "/static/reports/$md5/";
		var path = "$path";
		$:self.common_jquery
		$$('#hiden_comment').click(function(){ $$('.comment').parent().parent().toggle(); });
		$$.ajax({
			url: files+"smali/smali/"+path+".smali" ,
			success: function(data) {
			    $$('#contenido').html(data);
			    $$('#contenido').addClass("smali:nocontrols");
			    colorea();
			    procesar_codigo(check_class, stack_arroba_num);
			},
			error: function() {
				$$.ajax({
					url: files+"ddx/"+path+".ddx" ,
					success: function(data) {
					    $$('#contenido').html(data);
					    $$('#contenido').addClass("ddx:nocontrols");
					    colorea();
					    procesar_codigo(check_class, stack_arroba_num);
					},
					error: function() {
						$$('#contenido').html("ERROR, not Found");
						//history.back(); window.location = "./";
					}
				});
			}
		});
		});

<h2 class="cargando">Cargando ...</h2>
$if not recurso:
	<a href="./">Volver al reporte</a>
	<input type="button" id="hiden_comment" value="Oculta/Muestra comentarios"/>
$else:
	<a href="./../../">Volver al reporte</a>
<pre name="code" id="contenido"></pre>
